package com.logistics.pick.entity.model;

import com.logistics.pick.entity.domain.PickContainer;
import lombok.Data;

@Data
public class PickContainerRow {

  private Integer id;

  // 拣配单
  private Integer pick;

  // 托盘
  private String container;

  // 托盘展示名
  private String containerName;

  // 站点
  private String station;

  public PickContainerRow() {
  }

  public PickContainerRow(PickContainer pickContainer) {
    this.id = pickContainer.getId();
    this.pick = pickContainer.getPick();
    this.container = pickContainer.getContainer();
    this.station = pickContainer.getStation();
  }

  public static PickContainerRow build(PickContainer pickContainer){
    return new PickContainerRow(pickContainer);
  }
}
